home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / CMPLTPAS / GSAVE.PAS < prev    next >
Pascal/Delphi Source File  |  1988-07-24  |  478b  |  22 lines

  1. {<<<< GSave >>>>}
  2. { From: COMPLETE TURBO PASCAL by Jeff Duntemann  }
  3. { Scott, Foresman & Co. 1988  ISBN 0-673-38355-5 }
  4. { Described in section 19.10 -- Last mod 12/5/87 }
  5.  
  6. PROCEDURE GSave(GName : String80; VAR IOR : Integer);
  7.  
  8. TYPE
  9.   ScreenBuff = ARRAY[0..16383] OF Byte;
  10.  
  11. VAR
  12.   GBuff : ScreenBuff ABSOLUTE $B800 : 0;
  13.   GFile : File;
  14.  
  15. BEGIN
  16.   Assign(GFile,GName);
  17.   Rewrite(GFile,16384);
  18.   BlockWrite(GFile,GBuff,1);
  19.   IOR := IOResult;
  20.   Close(GFile)
  21. END;
  22.